﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;
using Entity;

namespace Web.admin.InnerManage
{
    public partial class SummaryContent : System.Web.UI.Page
    {
        ContestService contestService = new ContestService();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                string operation = Request["OPERATION"];
                if (operation == null)
                {
                    return;
                }
                string compId = Request["id"];
                BoContests con = contestService.getContest(compId);
                if (compId == null)
                    return;
                if (operation == "Content")
                {
                    conTitle.Text = con.CON_NAME + "有益经验";
                    conTent.Text = con.CON_EXPERIENCE;
                }
                else if (operation == "Content1")
                {
                    conTitle.Text = con.CON_NAME + "有待改进";
                    conTent.Text = con.CON_IMPROVE;
                }
                else if (operation == "Content2")
                {
                    conTitle.Text = con.CON_NAME + "竞赛总结";
                    conTent.Text = con.CON_SUMMARY;
                }
            }
        }
    }
}